//
//  ChildHoodMemory.h
//  ChildHoodStemp
//
//  Created by xuzuotao on 13-9-8.
//
//

#import <Foundation/Foundation.h>
#import "ContactsGroup.h"
#import "Snsp.pb.h"

typedef enum : NSUInteger {
    ACTIVE_STATUS_NORMAL = 0,//正常
    ACTIVE_STATUS_UNACTIVE = 1,//未激活
    ACTIVE_STATUS_UNLOGINRECENTLY = 2,//最近未登录
    ACTIVE_STATUS_LOGINRECENTLY = 3,//最近未登录
} ACTIVE_STATUS;



@class SNSPMemory;
@interface ChildHoodMemory : NSObject
{
    SNSPMemory* _snspMemory;
    ContactsGroupType _contactGroup;
    int32_t _myClassID;
}

/*
 @property (nonatomic , retain)NSString* memoryId;
 @property (nonatomic , retain)NSString* isChild;
 @property (nonatomic , retain)NSString* name;
 @property (nonatomic , retain)NSString* nickName;
 @property (nonatomic , retain)NSString* sex;
 @property (nonatomic , retain)NSString* portraitImageFilePath;
 @property (nonatomic , retain)NSString* title;
 @property (nonatomic , retain)NSString* groupName;
 @property (nonatomic , retain)NSString* organizationName;
 @property (nonatomic , retain)NSString* signature;
 @property (nonatomic , retain)NSString* classId;
 @property (nonatomic , retain)NSString* photosCount;
 @property (nonatomic , retain)NSString* memorypolicy;
 @property (nonatomic , retain)NSString* isFollowed;
 @property (nonatomic , retain)NSString* postFilePath;
 @property (nonatomic , retain)NSString* pairsFilePath;
 @property (nonatomic , retain)NSString* checkCode;
 
 */

@property(nonatomic, readonly, retain)SNSPMemory* snspMemory;
@property (nonatomic,assign) int32_t myClassID;
-(id)initWithMemory:(SNSPMemory*)snspMemory;
-(id)initWithMemory:(SNSPMemory*)snspMemory andGroup:(ContactsGroupType)group;

@property(nonatomic, assign)BOOL hasChild;

// @property (readonly, retain) SNSPMultimedia* profilePicture;
@property(nonatomic, readonly, retain, getter = getProfilePictureUri)NSString* profilePictureUri;

@property(nonatomic, readonly, retain, getter = getProfilePictureNextUri)NSString* profilePictureNextUri;


//@property (readonly, retain) NSString* name;
@property(nonatomic, readonly, retain, getter = getName)NSString* name;

//@property (readonly, retain) NSString* nickName;
@property(nonatomic, readonly, retain, getter = getNickName)NSString* nickName;

//@property (readonly, retain) NSString* organizationName;
@property(nonatomic, readonly, retain, getter = getOrganizationName)NSString* organizationName;

//@property (readonly) SNSPSex sex;
@property(nonatomic, readonly, assign, getter = getSex)SNSPSex sex;

//@property (readonly, retain) NSString* profileTitle;
@property(nonatomic, readonly, retain, getter = getProfileTitle)NSString* profileTitle;

//@property (readonly, retain) NSString* groupName;//
@property(nonatomic, readonly, retain, getter = getGroupName)NSString* groupName;

//@property (readonly) int32_t clazzId;
@property(nonatomic, readonly, assign, getter = getClazzId)int32_t classId;

//@property (readonly, retain) NSString* signature;
@property(nonatomic, readonly, retain, getter = getSignature)NSString* signature;

//@property (readonly) int32_t memoryId;
@property(nonatomic, readonly, assign, getter = getMemoryId)int32_t memoryId;

//isChild
@property(nonatomic, readonly, assign, getter = getIsChild)BOOL isChild;

// @property (readonly) SNSPMemoryPolicy policy;
@property(nonatomic, readonly, assign, getter = getPolicy)SNSPMemoryPolicy policy;

//- (BOOL) isFollowed;
@property(nonatomic, readonly, assign,getter = getIsFollowed)BOOL isFollowed;

// @property (readonly, retain) NSString* checkCode;
@property(nonatomic, readonly, retain, getter = getCheckCode)NSString* checkCode;

@property(nonatomic, readonly, assign)ContactsGroupType contactGroup;

@property(nonatomic, readonly, retain, getter = getPairsList)NSArray* pairsList;

@property(nonatomic, readonly, retain, getter = getPostsList)NSArray* postsList;

@property(nonatomic, readonly, retain, getter = getPhotosList)NSArray* photosList;


@property(nonatomic, readonly, assign, getter = getPermission)SNSPPermission permission;

//@property(nonatomic, readonly, retain, getter = getPhotosList)NSArray* photosList;


@property(nonatomic,assign)BOOL nonFirstMessagePull;

@property(nonatomic,assign)BOOL nonFirstNoticePull;

@property(nonatomic, readonly, assign, getter=getActiveStatus)ACTIVE_STATUS activeStatus;

@property (nonatomic, readonly, retain, getter=getGardenName) NSString *gardenName;
@property (nonatomic, readonly, retain, getter=getGardenUrl) NSString *gardenUrl;




@end
